<HTML><HEAD>
<TITLE>netwib doc_html (version 5.39.0)</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H2><A HREF="../../index.html">main index</A></H2>
<H2><A HREF="../pkt.html">section index</A></H2><HR><BR>
<PRE>

<FONT COLOR="#880000">/*-------------------------------------------------------------*/</FONT>
<FONT COLOR="#880000">/* Name : netwib_ip64bits_init_ippkt
   Description :
     Initialize a buffer containing an IP header and
     64 bits of data.
     This kind of packets are needed for errors (cf. rfc 792).
   Input parameter(s) :
     *piphdr : IP header
     *pipdata : IP data
     *phdrudp : udp header
     *phdrtcp : tcp header
   Input/output parameter(s) :
   Output parameter(s) :
     *pip64bits : buffer containing an IP header and
                  64 bits of data.
   Normal return values :
     <FONT COLOR="#000044">NETWIB_ERR_OK</FONT> : ok
*/</FONT>
<FONT COLOR="#000088">netwib_err</FONT> <B>netwib_ip64bits_init_ippkt</B>(<FONT COLOR="#000088">netwib_constbuf</FONT> *pippkt,
                                      <FONT COLOR="#000088">netwib_bufext</FONT> *pip64bits);

<FONT COLOR="#880000">/*-------------------------------------------------------------*/</FONT>
<FONT COLOR="#880000">/* Name : netwib_ip64bits_decode_ipxyz
   Description :
     Try to decode ip packet contained in ip64bits.
   Input parameter(s) :
     *pip64bits : ip header and at least 64 bits of ip data
   Input/output parameter(s) :
   Output parameter(s) :
     *piphdr : decoded IP header
     *pipdata : buffer containing ip data
     *pudpsrc : udp source port
     *pudpdst : udp destination port
     *pudplen : udp len
     *pudpcheck : udp checksum
     *ptcpsrc : tcp source port
     *ptcpdst : tcp destination port
     *pseqnum : tcp sequence number
   Normal return values :
     <FONT COLOR="#000044">NETWIB_ERR_OK</FONT> : ok
     <FONT COLOR="#000044">NETWIB_ERR_NOTCONVERTED</FONT> : packet not decoded
     <FONT COLOR="#000044">NETWIB_ERR_DATAMISSING</FONT> : pkt was not big enough
*/</FONT>
<FONT COLOR="#000088">netwib_err</FONT> <B>netwib_ip64bits_decode_ipudp</B>(<FONT COLOR="#000088">netwib_constbuf</FONT> *pip64bits,
                                        <FONT COLOR="#000088">netwib_iphdr</FONT> *piphdr,
                                        <FONT COLOR="#000088">netwib_port</FONT> *pudpsrc,
                                        <FONT COLOR="#000088">netwib_port</FONT> *pudpdst);
<FONT COLOR="#000088">netwib_err</FONT> <B>netwib_ip64bits_decode_iptcp</B>(<FONT COLOR="#000088">netwib_constbuf</FONT> *pip64bits,
                                        <FONT COLOR="#000088">netwib_iphdr</FONT> *piphdr,
                                        <FONT COLOR="#000088">netwib_port</FONT> *ptcpsrc,
                                        <FONT COLOR="#000088">netwib_port</FONT> *ptcpdst);
<FONT COLOR="#008800">#define <B>netwib_ip64bits_decode_ipdata</B>(pip64bits,piphdr,pipdata) <B>netwib_pkt_decode_ipdata</B>(pip64bits,piphdr,pipdata)</FONT>

</PRE><BR><BR><HR><BR>
<H2><A HREF="../../index.html">main index</A></H2>
<H2><A HREF="../pkt.html">section index</A></H2>
</BODY></HTML>
